<?php
class UserBannerWidget extends Widget
{
	public function render($data)
	{
		//$data = api('weather')->getRealtime();
		$data['weather'] = api('weather')->getOneWeek();
		// user info
		//$udata = api('User')->data($_SESSION['mid'])->show();
		$data['user'] =  $_SESSION;
		$content = $this->renderFile(ADDON_PATH . '/widgets/system_recommend/UserBanner.html',$data);
		return $content;
	}
	
	//运行服务，系统服务自动运行
	public function run() {
	}
}
